package com.gofruit.bean;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

/**
 * 
 * @author 陈瑶
 * @see 订单实体
 *
 */
public class Order {
	
	private String orderId;//有意义：店铺+当前时间+买家。如果买家没注册。那么这个订单值得商量
	private int userId;//用户编号
	private String userName;//用户名
	private String userTel;//用户电话
	private String userQQ;//用户QQ
	private String userWeiXin;//用户微信
	private String userDeliverAddres;//用户收货地址
	private int shopId;//店铺编号
	private String shopName;//店铺名
	private String orderFashion;//派送方式
	private String orderPayMent;//支付方式
	private Double orderSumPrice;//订单价格
	private String orderDetail;//订单描述
	private Date orderTime;//订单创建时间
	private int orderState;//订单状态：0待付款1待发货2已收货3待评价4退款
	//与OrderItem，一对多关系
	private Set<OrderItem> orderItems = new HashSet<OrderItem>();
	
	public String getOrderId() {
		return orderId;
	}
	public void setOrderId(String orderId) {
		this.orderId = orderId;
	}
	public int getUserId() {
		return userId;
	}
	public void setUserId(int userId) {
		this.userId = userId;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getUserTel() {
		return userTel;
	}
	public void setUserTel(String userTel) {
		this.userTel = userTel;
	}
	public String getUserQQ() {
		return userQQ;
	}
	public void setUserQQ(String userQQ) {
		this.userQQ = userQQ;
	}
	public String getUserWeiXin() {
		return userWeiXin;
	}
	public void setUserWeiXin(String userWeiXin) {
		this.userWeiXin = userWeiXin;
	}
	public String getUserDeliverAddres() {
		return userDeliverAddres;
	}
	public void setUserDeliverAddres(String userDeliverAddres) {
		this.userDeliverAddres = userDeliverAddres;
	}
	public int getShopId() {
		return shopId;
	}
	public void setShopId(int shopId) {
		this.shopId = shopId;
	}
	public String getShopName() {
		return shopName;
	}
	public void setShopName(String shopName) {
		this.shopName = shopName;
	}
	public String getOrderFashion() {
		return orderFashion;
	}
	public void setOrderFashion(String orderFashion) {
		this.orderFashion = orderFashion;
	}
	public String getOrderPayMent() {
		return orderPayMent;
	}
	public void setOrderPayMent(String orderPayMent) {
		this.orderPayMent = orderPayMent;
	}
	public Double getOrderSumPrice() {
		return orderSumPrice;
	}
	public void setOrderSumPrice(Double orderSumPrice) {
		this.orderSumPrice = orderSumPrice;
	}
	public String getOrderDetail() {
		return orderDetail;
	}
	public void setOrderDetail(String orderDetail) {
		this.orderDetail = orderDetail;
	}
	public Date getOrderTime() {
		return orderTime;
	}
	public void setOrderTime(Date orderTime) {
		this.orderTime = orderTime;
	}
	public int getOrderState() {
		return orderState;
	}
	public void setOrderState(int orderState) {
		this.orderState = orderState;
	}
	public void setOrderItems(Set<OrderItem> orderItems) {
		this.orderItems = orderItems;
	}
	public Set<OrderItem> getOrderItems() {
		return orderItems;
	}
	public Order(String orderId, int userId, String userName, String userTel,
			String userQQ, String userWeiXin, String userDeliverAddres,
			int shopId, String shopName, String orderFashion,
			String orderPayMent, Double orderSumPrice, String orderDetail,
			Date orderTime, int orderState) {
		super();
		this.orderId = orderId;
		this.userId = userId;
		this.userName = userName;
		this.userTel = userTel;
		this.userQQ = userQQ;
		this.userWeiXin = userWeiXin;
		this.userDeliverAddres = userDeliverAddres;
		this.shopId = shopId;
		this.shopName = shopName;
		this.orderFashion = orderFashion;
		this.orderPayMent = orderPayMent;
		this.orderSumPrice = orderSumPrice;
		this.orderDetail = orderDetail;
		this.orderTime = orderTime;
		this.orderState = orderState;
	}
	public Order() {
		super();
		// TODO Auto-generated constructor stub
	}
	
	
	
	
	
}
